@charset "utf-8";

@import "../../src/less/quote/class.less";
@import "../../src/less/quote/color.less";


#inbox{
  height:calc(100vh - @val-a);
  position: relative;
  .layout-inbox{
    opacity: 0;
    height: calc(100% - @val-b);
  }
  //框架布局样式
  .ui-layout-center{
    //padding:20px;
    height: 100%;
  }
  .ui-layout-west{
    border-right:1px solid @cdb;
    background: @cf;
  }
  .ui-layout-east{
    border-left:1px solid @cdb;
    background: @cf;
  }


  //.ui-layout-resizer{overflow: initial !important;}
  //.ui-layout-toggler{background: red;width:30px !important;}
  .ui-layout-west {
    .site-count{
      height: 60px;
      background: @cf;
      padding: 0 25px;
      border-bottom: 1px solid @cdb;
    }
    //左侧边栏
    .site-header {
      margin-top: 10px;
      height: 30px;
      line-height: 30px;
      background: @cf;
      padding: 0 25px;
      .header-img {
        display: inline-block;
        .wh(30px, 30px);
        line-height: 25px;
        img {
          width: 100%;
        }
      }
      .header-select {
        //width: calc(100% - 100px);
        height: 30px;
        text-align: center;
        select {
          width: 100%;
          height: 30px;
          padding: 0 5px;
          border: 1px solid @cc;
          font-size: 15px;
          border-radius: 4px;
          font-weight: 200;
          option {
            font-size: 16px;
            font-weight: 200;
          }
        }
      }
      .header-num {
        font-weight: 600;
        color: @main-a;
        min-width: 65px;
        text-align: right;
      }
    }
    //搜索ticket
    .site-search {
      height: 32px;
      background: @cf;
      padding: 0 25px;
      margin: 10px 0;
      .search-a{
        width:80%;
      }
      [data-name='iconFanhui']{
        margin-left: 15px;
        font-size: 16px;
        font-weight: bold;
        color:@c9;
        cursor:pointer;
      }
    }

    .site-email {
      background: @cf;
      height: calc(100% - 215px);
      overflow: hidden;
      .active .list-title {
        color: @main-b;
      }
      #search{display: none;}
      .box-list{
        color: @c3;
        margin-bottom: 5px;
        //&:first-child .list-content{display: block;}
        .list-title {
          height: 50px;
          padding: 0 25px;
          font-size: 16px;
          background: @bg-a;
          cursor: pointer;
        }
        .list-content {
          display: none;
          overflow-y: auto;
          /*
           **@此处菜单算法(num代表有几个菜单项)
           **@当前Num = 2;
           **@420 = 270 + (num*50) + (num-1)*5
           */
          max-height: calc(100vh - 375px);
          .active-info {
            background: @cf5;
          }
          .com-check {
            display: block;
          }
          .content-list {
            position: relative;
            height: 70px;
            padding: 0 25px;
            font-size: 16px;
            line-height: 1.8;
            border-bottom: 1px dashed @ceb;
            cursor: pointer;
            &:last-child {
              border-bottom: none
            }
            .list-email {
              position: relative;
              font-weight: 600;
              color: @main-a;
              .email-text {
                width: 100%;
                display: inline-block;
              }
              /*input[type='checkbox']*/
              & > label {
                position: absolute;
                left: -20px;
                top: 0;
              }
            }
            .list-text {
              width: 100%;
              font-size: 14px;
              word-break: break-all;
            }
            .list-email span, .list-text {
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
              vertical-align: middle;
            }
          }
        }
      }
    }

    //备注相关样式
    .site-mark{
      position: absolute;
      width: 100%;
      height: 400px;
      top:100%;
      transform: translateY(-45px);
      border-top: 1px dashed @ceb;
      padding:10px 10px 20px;
      transition: transform .3s;
      background: @cf9;
      box-shadow: -1px 0px 4px 0px @ceb;
      .mark-title{
        height: 35px;
        color:@c9;
        cursor: pointer;
        font-weight: bold;
        font-size: 16px;
        text-align: center;
        .icon-shangla{font-size: 10px;}
        .active-arrow{
          display: inline-block;
          transform: rotate(180deg);
        }
      }
      .mark-box{
        overflow-y: auto;
        height: 350px;
      }
      .mark-content{
        margin-top: 10px;
        .content-list{
          padding:5px 0;
          border-bottom: 1px dashed @cdb;
          .list-text{}
          .list-remark{
            .iconfont{
              color:@cc;font-size:24px;cursor: pointer;
              transition: opacity .2s;
              &:hover{opacity: .6}
            }
          }
        }
      }
    }
    .active-mark{
      transform: translateY(-400px);
      .mark-title{
        .active-arrow{
          transform: rotate(0deg);
        }
      }
    }

    //弹出页面时所呈现的备注样式
    .active-detail{
      top:auto;
      transform:inherit;
      bottom:0;
      height: calc(100%);
      .mark-box{
        height: calc(100% - 30px);
      }
    }

  }

  .ui-layout-east{


    //右侧边栏
    .order-no{
      position: absolute;
      top:40%;
      left:50%;
      transform: translate(-50%,-50%);
      img{width: 180px;}
      text-align: center;
      letter-spacing: 1px;
      color:@c9;
      opacity: .7;
    }
    .order-header{
      height:50px;
      background: @cf;
      padding:0 25px;
      .box-list{
      }
    }
    .order-box{
      background: @cf;
      font-size: 13px;
      //max-height: calc(100% - 50px);
      //overflow: auto;
      .row{margin:6px 0;}
      .box-list{
        color:@c3;
        margin-bottom: 5px;
        &:first-child .box-content{display: block;}
        //订单基本信息
        .box-title{
          //height:65px;
          padding:3px 15px;
          font-size: 14px;
          background: @bg-a;
          cursor: pointer;
          label{
            //min-width: 68px;
          }
          .label-text{
            //width: calc(100% - 69px);
          }
          .order a{
            color: @main-d;
          }
        }
        .box-content{
          //订单详细信息
          display: none;
          .list-message{
            padding:15px;
            border-bottom: 1px dashed @cf2;
            label{
              min-width: 68px;
            }
          }
          //订单小包裹信息
          .list-content{
            margin-top: 5px;
            padding:0 15px;
            .content-list{
              //height:80px;
              padding:5px 0;
              border-bottom:1px solid @cdb;
              overflow: auto;
              .list-text{
                float: left;
                width:calc(100% - 80px);
                //height: 70px;
                .text-line{
                  margin: 2px 0;
                  height: 22px;
                  .line-order{
                    color:@main-d;
                  }
                  .line-status{
                    float:right;
                    text-align: center;
                    width:50px;
                    padding:2px 2px;
                    color:@cf;
                    font-size: 12px;
                    background: @c9;
                  }
                }
              }
              .list-img{
                float:right;
                width:69px;
                height:69px;
                background: @cc;
                background-repeat: no-repeat;
                background-position: center center;
                background-size: cover;
                overflow: hidden;
                img{width: 100%;}
              }
            }
          }
        }

      }
    }

    .ticket-table{
      width: 100%;
      margin-top: 10px;
      .ticket-head-tr{
        td{
          text-align: center;
          background-color: @cf2;
        }
      }
      td{
        padding:5px;
      }
      td.ticket-detail{
        /*max-height: 550px;
        overflow-y: auto;*/
      }
      .ticket-td{text-decoration: underline;cursor:pointer;}
    }

  }

  //中间栏
  .ui-layout-center{
    background: @cf;
    .mes-header{
      position: relative;
      height:60px;
      //line-height: 50px;
      background: @cf;
      padding:0 25px;
      border-bottom: 1px solid @cdb;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;

      //.email,.ticket,.reply{margin-right: 30px;}
      label{font-weight: bold;color:@main-a;}
    }

    .mes-child-box{
      height: calc(100% - 125px);
      .child-north{
        //**********
        //此处样式已提取共用ticket 右侧历史
      }
      .child-center{
          border-top: 1px solid @cdb;
          .mes-send{
            position: absolute;
            height: 100%;
            width: 100%;
            .send-title{
              height: 45px;
              line-height: 45px;
            }
            .ql-toolbar.ql-snow{border:none};
            .ql-container.ql-snow{border:none;}
            #editor-container{height:calc(100% - 42px);}
          }
      }
    }


    .mes-footer{
      position: absolute;
      padding:0 25px;
      width: 100%;
      height: 65px;
      line-height: 65px;
      border-top:1px solid @ceb;
      bottom:0;
      .c-pos{
        /*position:absolute;
        right:25px;
        top:50%;
        transform: translateY(-50%)*/
      }
    }
  }

  //ticket详情 和 ticket历史
  .ui-layout-center .mes-child-box,.ui-layout-east .ticket-table{
      .mes-content{
        position: relative;
        padding:40px 10px;
        width:100%;
        height: 100%;
        overflow-y: auto;
        .mes-emmm{
          position: relative;
          top:50%;
          transform: translateY(-50%);
          text-align: center;
          color:@c9;
          letter-spacing: 1px;
          opacity:.8;
          img{width: 260px;}
        }
        //客服与客户的调转对话框样式
        .client{
          .content-head{float:right;margin-left:20px;}
          .content-detail{float:right;}
          .head-a{
            background-image:url("../../src/img/client.png");
          }
        }
        .user{
          .content-head{float:left;margin-right:20px;}
          .content-detail{float:left;}
          .head-a{
            background-image:url("../../src/img/user.png");
          }
        }

        .content-list{
          margin-bottom: 20px;
          .content-head{
            display: inline-block;
            max-width: 50px;
            &>p{
              word-break: break-word;
              line-height: 1.3;
              color:@main-a;
              text-align: center;
              font-size: 12px;
            }
          }
          .content-detail{
            display: inline-block;
            width:calc(100% - 130px);
            max-width: 700px;
            padding:16px;
            border: 1px solid @ceb;
            border-radius: 5px;
            .detail-header{
              padding-bottom:10px;
              margin-bottom: 10px;
              border-bottom: 1px dashed @ceb;
              color:@c9;
            }
            .detail-text{
              padding-bottom: 20px;
              color:@main-a;
              word-break: break-all;
              //*{max-width: 100%;}
              overflow-x: auto;
            }
          }
        }

        //覆盖
        .head-a{
          width:50px;
          height:50px;
        }
        //history覆盖
        .content-head-history{
          max-width: 25px;
          .head-a{
            width:25px;
            height:25px;
          }
        }

      }

  }

  /*独用icon*/
  .icon-get-email{
    font-size: 20px;
    margin-left: 10px;
    cursor:pointer;
    color:@c9;
    &:hover{color:@main-b;}
    &:after{
      width: 1px;
      position: relative;
      left:-34px;
    }
  }
  .icon-gengxin{
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    &:hover{color:@main-b;}
  }
  i.fold,i.fold2{
    position: absolute;
    top:50%;
    width:28px;
    height: 28px;
    transform: translateY(-50%);
    cursor: pointer;
    &:before{
      position: absolute;
      left: 9px;
      top: 7px;
      color:@cf;
      font-size: 12px;
      transform: rotateZ(180deg);
    }
  }
  i.fold{
    right:0;
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
    background: @cdb;
  }
  i.fold2{
    &:before{
      left:-3px;
      color:@cdb;
      transform: rotateZ(0deg);
    }
    left:0;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
  }



  i.fold-z{
    &:before{
      transform: rotateZ(0deg);
    }
  }

  .feat-grid{
    .row{
      label{
        display: inline-block;
        font-weight: bold;
        color:@main-a;
        vertical-align: middle;
        font-family: "Microsoft YaHei";

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .label-text{
        display: inline-block;
        word-break: break-all;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: middle;
      }
    }
  }

  .ql-coupon{
    font-size: 20px;
    font-weight: 100;
    top: -2px;
    position: relative;
  }
}


body{

  //组件覆盖
  /*需要重置的一些样式*/
  .J-datepicker-range-day{
    width: 100%;
  }
  .c-datepicker-picker{
    z-index: 10001;
  }
  .com-message{
    z-index: 10005;
  }

  .layer-box{

    //间距
    .row{
      margin-left:-10px;
      margin-right: -10px;
      &>[class*=col-] {
        padding:0 10px;
      }
    }

    #select-sku{
      width:100%;
      max-height:150px;
      overflow-y: auto;
      label{
        position: relative;
        width:60px;
        height:75px;
        margin-right:10px;
        margin-bottom: 10px;
        .check-box{
          position: absolute;
          bottom:15px;
          right:0;
        }
        .img-box{
          //position: absolute;
          //left:0;
          //top:0;
          width:60px;
          height:60px;
          //padding:25% 0;
          text-align: center;
          img{max-width: 100%;max-height:100%;}
        }
        .img-sku{
          text-align: center;
          overflow: hidden;
        }
      }
    }

    .layer-box-content{
      .box-content{
        width: 90%;
        margin:0 auto;
        //label的描述信息
        .label-description{
          position: relative;
          display: inline-block;
          width: 100%;
          vertical-align: middle;
          min-height: 32px;
          line-height: 32px;
          color:@cc;
        }
        .other-reason{margin-top: 5px;}
      }
    }

    //组件独有重置
    .form-item{
      margin-bottom: 20px;
    }
    .select-a{
      display: inline-block;
      width:100%;
      border:1px solid @cdb;
      padding-left: 10px;
      min-height: 32px;
      &:focus{
        border:1px solid @main-b;
      }
      transition: all .2s;
      border-radius: 5px;
    }
  }


  .com-tab{
    height:100%;
    .tab-header{
      .header-item{
        font-size: 0;
        position: relative;
        &:after{
          position: absolute;
          content: '';
          width: 100%;
          height:3px;
          top:100%;
          left: 0;
          z-index: 1;
          background-color: @ceb;
        }
        .active{
          color:@main-b;
        }
        .header-line{
          position: absolute;
          height:3px;
          top:100%;
          left: 0;
          z-index: 2;
          background-color: @main-b;
          transition: all .3s;
        }

        .item-list{
          position: relative;
          display: inline-block;
          padding:0 20px;
          height: 60px;
          line-height: 60px;
          font-size: 14px;
          cursor:pointer;
          z-index: 2;
        }
      }
    }
    .tab-content{
      height:calc(100% - 60px);
      overflow-y: auto;
    }
  }
}